/*
 *  UsbMidiDeviceInfo.cpp
 *  MusicAnalyzer
 *
 *  Created by jiro on 12/03/25.
 *  Copyright 2012 jiro music. All rights reserved.
 *
 */

#include "UsbMidiDeviceInfo.h"

#include "../MidiDeviceSystem/MidiDeviceSystem.h"
#include "../UsbDeviceSystem/UsbDeviceInfo.h"

namespace sc
{

	UsbMidiDeviceInfo::UsbMidiDeviceInfo()
	{
		SetType( sc::DeviceInfo::Type_UsbMidiDevice );
	}

	UsbMidiDeviceInfo::UsbMidiDeviceInfo( const UsbMidiDeviceInfo& info )
		: UsbDeviceInfo( static_cast< const UsbDeviceInfo& >( info ) ),
		  MidiDeviceInfo( static_cast< const MidiDeviceInfo& > ( info ) )
	{
		SetType( sc::DeviceInfo::Type_UsbMidiDevice );
	}

	UsbMidiDeviceInfo::UsbMidiDeviceInfo( const UsbDeviceInfo& info )
		: UsbDeviceInfo( info ),
		  MidiDeviceInfo()
	{	
		SetType( sc::DeviceInfo::Type_UsbMidiDevice );
	}

	UsbMidiDeviceInfo::UsbMidiDeviceInfo( uint16_t vendorId, uint16_t productId, const std::string& vendorName, const std::string& productName )
		: UsbDeviceInfo( vendorId, productId, vendorName, productName ),
		  MidiDeviceInfo()
	{
		SetType( sc::DeviceInfo::Type_UsbMidiDevice );
	}


}
